<div>
    <br>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">监控工作台 / 监控配置</li>
    </ol>
    <ul class="nav nav-tabs marT15">
      <li role="presentation"><a href="#/objManage" style="color: #555;">对象管理</a></li>
      <li role="presentation"><a href="#/childObjManage" style="color:#555;">子对象管理</a></li>
      <li role="presentation"><a href="#/attributeManage" style="color: #555;">属性管理</a></li>
      <li role="presentation"><a href="#/setupManage" style="color:#555;">监控设置管理</a></li>
      <li role="presentation" class="active"><a href="#/warnPersonManage" style="color: #555;">预警人管理</a></li>
      
   </ul> 
      
      

      <div class="table-box marT15">
            <table class="table table-bordered table-striped text-center bg-info">
             <tr class="bg-info"><td colspan="2">预警接收人员配置：</td><td colspan="5">
                 <div class="left lineH25 marR10">
                    <span class="search-name">对象类型</span>
                   <select class="form-control line4 right" ng-model='searchData.objType' ng-change='childObjType()'><!-- ng-options='item.DICID as item.DICVALUENAME for item in objType' -->  
                      <option value="">全部</option>
                      <option value="{{item.DICID}}" ng-repeat='item in objType'>{{item.DICVALUENAME}}</option> 
                    </select>
                </div>
                <div class="left lineH25 marR10">
                    <span class="search-name">对象</span>
                    <select class="form-control line4 right" ng-model='objId' ng-change='showData()'>   <!--  ng-options='item.objId as item.objName for item in objList' -->     
                      <option value="">全部</option>
                      <option value="{{item.objId}}" ng-repeat='item in objList'>{{item.objName}}</option> 
                    </select>
                </div>
             </td>
             </tr>
            <tr>
                <th class="text-center">序号</th>
                <th class="text-center">预警接收人</th>
                <th class="text-center">手机</th>
                <th class="text-center">邮箱</th>
                <th class="text-center">人员类型</th>
                <th class="text-center">接收预警等级</th>
                <th class="text-center">操作</th>
            </tr>        
                <tr ng-repeat='item in result'>
                    <td>{{$index+1}}</td>
                    <td class="text-center">
                    <select class="form-control line3" class="receiveUser" ng-model='item.userId' ng-disabled='isDisabled' ng-change='changeUser($index)'> <!-- ng-options='i.userId as i.userName for i in users' -->
                    <option value="">--请选择--</option>
                      <option value="{{i.userId}}" ng-repeat='i in users'>{{i.userName}}</option>
                    </select>
                    </td>
                    <td class="w115">{{item.phoneNumber}}</td>
                    <td class="w115">{{item.mailBox}}</td>
                    <td class="text-center"><select class="form-control line3" ng-model='item.userType'>
                    <option value="1">责任人</option>
                    <option value="2">关注人</option>
                    </select></td>
                    <td style="min-width: 165px;">
                        <label><input type="checkbox" style='vertical-align: text-bottom;'                       
                        ng-model='item.warnLevel1'
                        >1级</label>
                        <label class="marL10 marR10"><input type="checkbox" style='vertical-align: text-bottom;'                       
                        ng-model='item.warnLevel2'
                        >2级</label>
                        <label><input type="checkbox" style='vertical-align: text-bottom;'                       
                        ng-model='item.warnLevel3'
                        >3级</label>
                    </td>
                    <td><button class="btn btn-primary btn-sm" ng-click='delTr(item.recId,$index)' data-toggle="modal" data-target="#delete">删除</button></td>
                </tr>    
                 <tr>
                   <td><a title='添加' class="glyphicon glyphicon-plus" ng-click='addTr()'></a></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                   <td></td>
                 </tr>
               

            </tbody>
        </table>
           
      </div>
       <div class="right marT15" ng-show='isadd=1'>
           <button class="btn btn-primary marR10" ng-click='cancel()'>取消</button>
           <button class="btn btn-primary" ng-click='save()'>保存</button>
       </div>
    </div>




<div class="modal fade" id="delete">  
  <div class="modal-dialog">  
    <div class="modal-content message_align">  
      <div class="modal-header">  
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>  
        <h4 class="modal-title">提示信息</h4>  
      </div>  
      <div class="modal-body">  
        <p>您确认要删除吗？</p>  
      </div>  
      <div class="modal-footer">  
         <input type="hidden" id="url"/>  
         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>  
         <a id="deleteSure" class="btn btn-primary" data-dismiss="modal" ng-click="deleteTr()">确定</a>  
      </div>  
    </div><!-- /.modal-content -->  
  </div><!-- /.modal-dialog -->  
</div><!-- /.modal -->  
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->
